<template>
    <div>
        <mt-swipe :auto="4000">
            <mt-swipe-item v-for="item in carouselList" :key="item.src" >
                <img :src="item.src" :class="{ full: isFull }">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
    export default {
        name: "carousel.vue",
        props: ['carouselList', 'isFull'],
        created() {
            console.log(this.carouselList, '轮播图')
        }
    }
</script>

<style scoped lang="less">
    .mint-swipe {
        text-align:center;
    img {
        height: 100%;
    }
    }
    .mint-swipe {
        height: 200px;
        .full {
            width: 100%;
        }
    }
</style>